using System;
using System.Runtime.Serialization;
namespace Net35.Crm.Sdk.Messages
{
	[DataContract(Namespace = "http://schemas.microsoft.com/crm/2011/Contracts")]
	public sealed class InputArgumentCollection : IExtensibleDataObject
	{
		private ExtensionDataObject _extensionDataObject;
		public int Count
		{
			get
			{
				return this.Arguments.Count;
			}
		}
		public ExtensionDataObject ExtensionData
		{
			get
			{
				return this._extensionDataObject;
			}
			set
			{
				this._extensionDataObject = value;
			}
		}
		public object this[string key]
		{
			get
			{
				return this.Arguments[key];
			}
			set
			{
				this.Arguments[key] = value;
			}
		}
		[DataMember]
		public InputArgument Arguments
		{
			get;
			set;
		}
		public InputArgumentCollection()
		{
			this.Arguments = new InputArgument();
		}
		public void Add(string key, object value)
		{
			this.Arguments.Add(key, value);
		}
	}
}
